import { IPSDESearchForm } from './ipsdesearch-form';
import { PSDEFormImpl } from './psdeform-impl';

export class PSDESearchFormImpl extends PSDEFormImpl implements IPSDESearchForm {
  get searchButtonPos(): 'RIGHT' | 'BOTTOM' {
    return this.M.searchButtonPos;
  }

  get searchButtonStyle(): 'DEFAULT' | 'NONE' | 'SEARCHONLY' | 'USER' | 'USER2' {
    return this.M.searchButtonStyle;
  }

  get enableAdvanceSearch(): boolean {
    return this.M.enableAdvanceSearch;
  }

  get enableAutoSearch(): boolean {
    return this.M.enableAutoSearch;
  }

  get enableFilterSave(): boolean {
    return this.M.enableFilterSave;
  }

  get cls(): string {
    return 'PSDESearchFormImpl';
  }

  instanceof(cls: string): boolean {
    if (cls == 'control.form.IPSDESearchForm') return true;
    return super.instanceof(cls);
  }
}
